﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProjectManage.Core.Entity.SYS
{
    [Table("sys_menu")]
    [Comment("菜单表")]
    public class SysMenu : DBEntityBase<Guid, MasterDbContextLocator>
    {
        [Comment("应用编号")]
        [Required, MaxLength(50)]
        public string AppCode { get; set; }

        [Comment("菜单编码")]
        [Required, MaxLength(50)]
        public string MenuCode { get; set; }

        [Comment("菜单名称")]
        [Required, MaxLength(50)]
        public string Name { get; set; }

        [Comment("菜单图标")]
        [MaxLength(50)]
        public string Icon { get; set; }

        [Comment("菜单类别")]
        [Required, MaxLength(1)]
        public string MenuType { get; set; }

        [Comment("对应页面Url")]
        [ MaxLength(500)]
        public string? Url { get; set; }

        [Description("父菜单编码")]
        public string ParentCode { get; set; }
    }
}
 